<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>信而富测试工具网页版</title>
		<meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon" />
		<link rel="stylesheet" href="/static/lib/layui/css/layui.css">
		<link rel="stylesheet" href="/static/css/font.css">
		<link rel="stylesheet" href="/static/css/weadmin.css">


	</head>

	<body>
		<!-- 顶部开始 -->
		<div class="container">
			<div class="logo">
				<a href="/index">信而富测试工具网页版</a>
			</div>
			<div class="left_open">
				<i title="展开左侧栏" class="iconfont">&#xe699;</i>
			</div>
			<ul class="layui-nav left fast-add" lay-filter="">

				<li class="layui-nav-item">
					 <div class="layui-input-inline env_tools layui-form">
						  <select id="env_tools_select" lay-filter="env_tools_select">
							  {% for en in enlist %}
								 <option value="{{ en }}">{{ en }}</option>
							  {% endfor %}
						  </select>
					 </div>
				</li>
			</ul>
			<ul class="layui-nav right" lay-filter="">

				<li class="layui-nav-item to-index">
					<a href="/">首页</a>
				</li>
				<li class="layui-nav-item to-index">
					身份ID：{{site.ip}}
				</li>
			</ul>

		</div>
		<!-- 顶部结束 -->
		<!-- 中部开始 -->
		<!-- 左侧菜单开始 -->
		<div class="left-nav">
			<div id="side-nav">
				<ul id="nav">
					<li class="open">
						<a href="javascript:;">
							<i class="iconfont">&#xe6b8;</i>
							<cite>辅助工具</cite>
							<i class="iconfont nav_right">&#xe6a6;</i>
						</a>
						<ul class="sub-menu" style="display: block;">
							<li>
								<a _href="/tools/data">
									<i class="iconfont">&#xe6a7;</i>
									<cite>数据生成</cite>

								</a>
							</li>
							<li>
								<a _href="/tools/index">
									<i class="iconfont">&#xe6a7;</i>
									<cite>常用操作</cite>

								</a>
							</li>
							<li>
								<a _href="/sms/message">
									<i class="iconfont">&#xe6a7;</i>
									<cite>短信查询</cite>

								</a>
							</li>
						</ul>
					</li>
					<li>
						<a href="javascript:;">
							<i class="iconfont">&#xe705;</i>
							<cite>工具配置</cite>
							<i class="iconfont nav_right">&#xe697;</i>
						</a>
						<ul class="sub-menu">
							<li>
								<a _href="/admin/index">
									<i class="iconfont">&#xe6a7;</i>
									<cite>功能配置</cite>
								</a>
							</li>
							<li>
								<a _href="/admin/business_steps">
									<i class="iconfont">&#xe6a7;</i>
									<cite>功能步骤</cite>
								</a>
							</li>
						</ul>
					</li>


				</ul>
			</div>
		</div>
		<!-- <div class="x-slide_left"></div> -->
		<!-- 左侧菜单结束 -->
		{% block content %}
     	{% endblock %}

		<!-- 中部结束 -->
		<!-- 底部开始 -->
		<div class="footer">
			<div class="copyright">Copyright ©2018 crf_test_tools v1.0 All Rights Reserved</div>
		</div>
		<!-- 底部结束 -->
		<script type="text/javascript" src="/static/lib/layui/layui.js" charset="utf-8"></script>
		<script type="text/javascript">
//			layui扩展模块的两种加载方式-示例
//		    layui.extend({
//			  admin: '{/}.././static/js/admin' // {/}的意思即代表采用自有路径，即不跟随 base 路径
//			});
//			//使用拓展模块
//			layui.use('admin', function(){
//			  var admin = layui.admin;
//			});
			window.openid = '{{site.ip}}';
			window.env_tools = localStorage.getItem("env_tools");
			if(window.env_tools == null || typeof(window.env_tools) == 'undefined' ){
			    window.env_tools='UAT';
			    localStorage.setItem("env_tools",window.env_tools);
			}
			layui.config({
			  base: '/static/js/'
			  ,version: '101100'
			}).use('admin');
			layui.use(['jquery','admin','form'], function(){
				var $ = layui.jquery;
				var form = layui.form
				$(document).ready(function(){
				    $('#env_tools_select').val(window.env_tools);
				    $('#env_tools_select').find("option:contains('"+window.env_tools+"')").attr("selected",true);
				    $('.env_tools .layui-unselect').val(window.env_tools);
				    form.on('select(env_tools_select)', function(data){
						window.env_tools = $('#env_tools_select').val();
						localStorage.setItem("env_tools",window.env_tools);
					});

				});

			});


		</script>
	</body>
	<!--Tab菜单右键弹出菜单-->
	<ul class="rightMenu" id="rightMenu">
        <li data-type="fresh">刷新</li>
        <li data-type="current">关闭当前</li>
        <li data-type="other">关闭其它</li>
        <li data-type="all">关闭所有</li>
    </ul>

</html>